import {Injectable} from "@angular/core";
import {services} from "../../providers/service";
import {interfaceUrls} from "../../providers/serverUrls";
@Injectable()
export class ChildService extends services {
    deleteChildAccount(param) {
        return this.postMethod(interfaceUrls.deleteChildAccount, param)
            .then(data => {
                return data;
            }, err => {
                console.log(err);
                return err;
            })
            .catch(fail => {
                console.log(fail);
            });
    }

    childList(param) {
        return this.postMethod(interfaceUrls.childList, param)
            .then(data => {
                return data;
            }, err => {
                console.log(err);
                return err;
            })
            .catch(fail => {
                console.log(fail);
            });
    }

    childCount(param) {
        return this.postMethod(interfaceUrls.childCount, param)
            .then(data => {
                return data;
            }, err => {
                console.log(err);
                return err;
            })
            .catch(fail => {
                console.log(fail);
            });
    }


}